package com.czk.model.proxy.cglibproxy;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/4/27 23:21
 */
public class Client {
    public static void main(String[] args) {
        TeacherDao target=new TeacherDao();
        ProxyFactory proxyFactory=new ProxyFactory(target);
        TeacherDao proxy=(TeacherDao) proxyFactory.getInstance();
        proxy.teach();
    }
}
